<div class="content-double content-left">
    <h1>Calendar</h1>
    
    
    <div class="frame-input">
        <table class='shaded' style="width: 100%">
        <caption>
            Raids
        </caption>
        <tr>
            <th>Start</th>
            <th>End</th>
            <th>Sig-nup Deadline</th>
            <th>Raid Leader</th>
            <th>Note</th>
        </tr>
        <?php if(count($this->raids)) : ?>
        <?php foreach ($this->raids as $raid) : ?>
        <tr class="<?= $this->alternator(array("odd","even")); ?>" onclick="select(<?= $raid->id;?>);">
            <td><?= $raid->start_time;?></td>
            <td><?= $raid->end_time;?></td>
            <td><?= $raid->signup_deadline;?></td>
            <td><?= $raid->findParentRow('User_Model_Users','RaidLeader')->name;?></td>
            <td><?= $raid->note;?></td>
        </tr>
        <?php endforeach; ?>
        <?php else : ?>
        <tr>
            <td colspan='2'>No Raids</td>
        </tr>
        <?php endif; ?>
        </table>
    </div>
    
</div>

<div class="content-half content-right">
    <h1>Raid Options</h1>
    <div class="frame-input">
        <div class="frame-content">
            <div class="button_small">
                <a href="<?= $this->url(array('module' => 'raid', 'controller' => 'calendar', 'action' => 'index'),null, true)?>">Hattan</a>
            </div>
        </div>
    </div>
</div>